﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/*
namespace 第一次作业
{
    internal class Class1
    {
        public void mycount(int[] num)
        {
            //int i = num.Length;
            int max=num[0];
            int min= num[0];
            int all = 0;
            int aver = 0;
            for (int n = 0; n < num.Length; n++)
            {
                if (num[n] > max)
                {
                    max = num[n];
                }
                if (num[n] < min)
                {
                    min= num[n];
                }
                all += num[n];
                
            }
            aver = all / num.Length;
            Console.WriteLine("最大"+max+"最小"+min+"和"+all+"平均"+aver); 
                }
        static void Main()
        {
            int[] a = { 1, 2, 3 };
            Class1 myclass=new Class1();
            myclass.mycount(a);
        }
    }
}*/
